<?php
if(C('LAYOUT_ON')) {
    echo '{__NOLAYOUT__}';
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>跳转提示</title>
    <link rel="stylesheet" href="__PUBLIC__/css/weui.min.css" />
    <script type="text/javascript" src="__PUBLIC__/js/jquery-1.10.2.min.js"></script>
</head>

<body>
    <div id="container" class="container">
        <div class="zh_CN">
            <div class="weui-msg">
                <div class="weui-msg__icon-area">
                    <?php if(isset($message)) {?>
                    <i class="weui-icon-success weui-icon_msg"></i>
                    <?php }else{?>
                    <i class="weui-icon-warn weui-icon_msg"></i>
                    <?php }?>
                </div>
                <div class="weui-msg__text-area">
                    <h2 class="weui-msg__title">
                        <?php if(isset($message)) {?>
                        <?php echo($message); ?>
                        <?php }else{?>
                        <?php echo($error); ?>
                        <?php }?>
                    </h2>
                    <p class="weui-msg__desc">
                        等待时间：
                        <b id="wait">
                            <?php echo($waitSecond); ?>
                        </b>
                    </p>
                </div>
                <div class="weui-msg__opr-area">
                    <p class="weui-btn-area">
                        <a id="href" href="<?php echo($jumpUrl); ?>" class="weui-btn weui-btn_primary">返回上一页</a>
                    </p>

                </div>
            </div>
        </div>
    </div>

    <script src="__STATIC__/js/style.js" type="text/javascript" charset="utf-8"></script>

    <script type="text/javascript">
        (function () {
            var wait = document.getElementById('wait'), href = document.getElementById('href').href;
            var interval = setInterval(function () {
                var time = --wait.innerHTML;
                if (time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>

</body>

</html>